package pl.com.qapps.util;

import java.io.IOException;
import java.nio.file.Path;

/**
 * @author Jakub Dykowski
 * 
 */
public interface Extractor {

	/**
	 * 
	 * @param from
	 *            directory/file from which obtain file
	 * @param filePath
	 *            the path of the file to obtain (relative to its container)
	 * @return the newly created file
	 * @throws NullPointerException
	 * @throws IOException
	 */
	Path extract(Path from, String filePath) throws NullPointerException,
			IOException;
}
